Optimal. Leaf size=72 \[ \frac {\sqrt {a} \sin ^{-1}\left (\frac {\sqrt {a} \sin (c+d x)}{\sqrt {a \cos (c+d x)+a}}\right )}{d}+\frac {a \sin (c+d x) \sqrt {\cos (c+d x)}}{d \sqrt {a \cos (c+d x)+a}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.12, antiderivative size = 72, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.120, Rules used = {2770, 2774, 216} \[ \frac {\sqrt {a} \sin ^{-1}\left (\frac {\sqrt {a} \sin (c+d x)}{\sqrt {a \cos (c+d x)+a}}\right )}{d}+\frac {a \sin (c+d x) \sqrt {\cos (c+d x)}}{d \sqrt {a \cos (c+d x)+a}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 216
Rule 2770
Rule 2774
Rubi steps
\begin {align*} \int \sqrt {\cos (c+d x)} \sqrt {a+a \cos (c+d x)} \, dx &=\frac {a \sqrt {\cos (c+d x)} \sin (c+d x)}{d \sqrt {a+a \cos (c+d x)}}+\frac {1}{2} \int \frac {\sqrt {a+a \cos (c+d x)}}{\sqrt {\cos (c+d x)}} \, dx\\ &=\frac {a \sqrt {\cos (c+d x)} \sin (c+d x)}{d \sqrt {a+a \cos (c+d x)}}-\frac {\operatorname {Subst}\left (\int \frac {1}{\sqrt {1-\frac {x^2}{a}}} \, dx,x,-\frac {a \sin (c+d x)}{\sqrt {a+a \cos (c+d x)}}\right )}{d}\\ &=\frac {\sqrt {a} \sin ^{-1}\left (\frac {\sqrt {a} \sin (c+d x)}{\sqrt {a+a \cos (c+d x)}}\right )}{d}+\frac {a \sqrt {\cos (c+d x)} \sin (c+d x)}{d \sqrt {a+a \cos (c+d x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.09, size = 77, normalized size = 1.07 \[ \frac {\sec \left (\frac {1}{2} (c+d x)\right ) \sqrt {a (\cos (c+d x)+1)} \left (\sqrt {2} \sin ^{-1}\left (\sqrt {2} \sin \left (\frac {1}{2} (c+d x)\right )\right )+2 \sin \left (\frac {1}{2} (c+d x)\right ) \sqrt {\cos (c+d x)}\right )}{2 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.89, size = 88, normalized size = 1.22 \[ -\frac {\sqrt {a} {\left (\cos \left (d x + c\right ) + 1\right )} \arctan \left (\frac {\sqrt {a \cos \left (d x + c\right ) + a} \sqrt {\cos \left (d x + c\right )}}{\sqrt {a} \sin \left (d x + c\right )}\right ) - \sqrt {a \cos \left (d x + c\right ) + a} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right )}{d \cos \left (d x + c\right ) + d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \sqrt {a \cos \left (d x + c\right ) + a} \sqrt {\cos \left (d x + c\right )}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.18, size = 123, normalized size = 1.71 \[ -\frac {\left (\sqrt {\cos }\left (d x +c \right )\right ) \sqrt {a \left (1+\cos \left (d x +c \right )\right )}\, \left (\sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \sin \left (d x +c \right )+\arctan \left (\frac {\sin \left (d x +c \right ) \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}}{\cos \left (d x +c \right )}\right )\right ) \left (-1+\cos \left (d x +c \right )\right )}{d \sin \left (d x +c \right )^{2} \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 1.84, size = 791, normalized size = 10.99 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \sqrt {\cos \left (c+d\,x\right )}\,\sqrt {a+a\,\cos \left (c+d\,x\right )} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \sqrt {a \left (\cos {\left (c + d x \right )} + 1\right )} \sqrt {\cos {\left (c + d x \right )}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________